package com.jiandan.asm


class ASMExtension {

    List<String> includes = new ArrayList<>()
    List<String> excludes = new ArrayList<>()


    boolean enabled = true


    ASMExtension include(String... filters) {
        if (filters != null && filters) {
            this.includes.addAll(filters)
        }

        return this
    }

    ASMExtension exclude(String... filters) {
        if (filters != null) {
            this.excludes.addAll(filters)
        }

        return this
    }



    @Override
    public String toString() {
        return "ASMExtension{" +
                "includes=" + Arrays.toString(includes) +
                ", excludes=" + Arrays.toString(excludes) +
                ", enabled=" + enabled +
                '}';
    }
}
